#ifndef SYSTEMFAILURECONTROLLEER_H
#define SYSTEMFAILURECONTROLLEER_H

#include <QObject>
#include "../../view/systemInformation/systemfailureview.h"
#include <QDebug>

class SystemFailureController : public QObject
{
    Q_OBJECT
public:
    explicit SystemFailureController(QObject *parent = nullptr);
    ~SystemFailureController();
    void show(QVBoxLayout *vLayout, int stretch);//显示


    void setNextStationName(QString name);//设置下一站名字
    void setDestinationStationName(QString name);//设置终点站名字
    void setTerminusPlatformNumber(QString num);//列车总站月台号码(4位数字)
    void setServiceNumber(QString num);//服务号码(3位)和行程号码(2位)

    void setSelfTestingFailure(bool state);//是否显示自检失败告警
    void setCbtcRadioFailure(bool state);//是否显示CBTC无线电故障告警
    void setOverSpeedFailure(bool state);//是否显示超速故障告警
    void setTheATOStartButton(bool state);//是否显示ATO启动按钮(ATO)表示ATO启动按钮失效告警
    void setTrainHasNotLocalized(bool state);//是否显示表示列车没有本地化报警
    void setTrainHasNotInitialized(bool state);//是否显示NOT REGISTER(恐吓信)表示列车没有初始化报警

private:
    //系统故障
    SystemFailureView *systemFailureView;
signals:

};

#endif // SYSTEMFAILURECONTROLLEER_H
